home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / learnvb5 / qexample.frm < prev    next >
Text File  |  1998-06-08  |  2KB  |  52 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "Common Dialog Examples"
  5.    ClientHeight    =   2040
  6.    ClientLeft      =   1140
  7.    ClientTop       =   1515
  8.    ClientWidth     =   6555
  9.    LinkTopic       =   "Form1"
  10.    PaletteMode     =   1  'UseZOrder
  11.    ScaleHeight     =   2040
  12.    ScaleWidth      =   6555
  13.    Begin VB.CommandButton cmdDisplay 
  14.       Caption         =   "&Display Box"
  15.       Height          =   495
  16.       Left            =   2760
  17.       TabIndex        =   1
  18.       Top             =   1440
  19.       Width           =   1215
  20.    End
  21.    Begin MSComDlg.CommonDialog cdlExample 
  22.       Left            =   600
  23.       Top             =   120
  24.       _ExtentX        =   847
  25.       _ExtentY        =   847
  26.       _Version        =   327681
  27.       DialogTitle     =   "Open Example"
  28.       Filter          =   "Bitmaps (*.bmp)|*.bmp|Icons (*.ico)|*.ico|Metafiles (*.wmf)|*.wmf|GIF files (*.gif)|*.gif|JPEG Files (*.jpg)|*.jpg"
  29.    End
  30.    Begin VB.Label lblExample 
  31.       BorderStyle     =   1  'Fixed Single
  32.       Height          =   495
  33.       Left            =   600
  34.       TabIndex        =   0
  35.       Top             =   720
  36.       Width           =   5655
  37.    End
  38. End
  39. Attribute VB_Name = "Form1"
  40. Attribute VB_GlobalNameSpace = False
  41. Attribute VB_Creatable = False
  42. Attribute VB_PredeclaredId = True
  43. Attribute VB_Exposed = False
  44. Option Explicit
  45.  
  46. Private Sub cmdDisplay_Click()
  47. cdlExample.ShowOpen
  48. lblExample.Caption = cdlExample.filename
  49. End Sub
  50.  
  51.  
  52.